package com.varbal.icegame.test;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PrimeService {
	
	/**
	 **两个质数的乘积是(2069728987),计算出两个质数
	 *
	 */
	public List<Long> ddd(long sun,int number) {
		List<Long> longs = new ArrayList<Long>();
		longs = PrimeNumber.getPrimeNumber(sun);
		for(int i = 1 ; i < longs.size();i++) {
			for(int j = i+1 ; j <longs.size();j++) {
				if(i*j == sun) {
					System.out.println(i+"-----"+j);
				}
			}
		}
		return longs;
	}
	
	
	public static void main(String[] args) {
		long start = new Date().getTime();
		new PrimeService().ddd(2069728987, 2);
		long end = new Date().getTime();
		System.out.println(start-end);
	}
}
